<div class="c-header">
    <div class="nav-login">
        <div class="wrap">
            {if condition="session('UID')"}
            <div class="logined" style="display: flex;align-items: center;">
                <span>您好，欢迎来到好融艺！</span>
                {if $message}
                <img style='line-height:40px;margin-right: 15px;-webkit-transform: rotate(-180deg);transform: rotate(-180deg);cursor:pointer;'
                     src="__static__/hry/images/notice_ico.gif" onclick="location.href='{:url("Member/notice")}'"
                title="您有{$message}未读消息" />
                {/if}
                <a href="{:url('Member/index')}" style="color:#fd7400">{:session('userName')}</a>
                <a href="{:url('Login/logout')}">退出登录</a>
            </div>
            {else /}
            <div class="handle">
                <span>您好，欢迎来到好融艺！</span>
                <a href="{:url('Login/register')}" class="register">注册</a>
                <a href="{:url('Login/index')}" class="login">请登录</a>
            </div>
            {/if}
        </div>
    </div>
    <div class="nav-wrapper">
            <a href="/" class="logo"><img src="__static__/hry/images/logo_03.png" alt="">
                <!--<img src="__static__/hry/images/70.jpg" alt="">-->
            </a>
            <div class="nav" id="headernav">
                <a href="/" class="{if condition=" CONTROLLER_NAME eq 'Index'"}ac{/if} firstnav">首页</a>
                {volist name='treeMenu' id="to"}
                {if condition="(session('UID')) AND (session('isCheck') neq 1 ) AND(($to.name eq 'Project/index') or ($to.name eq 'Member/index'))"}
                <a href="javascript:void(0)" onclick="head_auth_block_show()" class="{if condition="
                   strstr($to.name,CONTROLLER_NAME)"}ac{/if} firstnav">{$to.title}</a>
                {else}
                  {if condition="($to.name eq 'Category/news') AND (CONTROLLER_NAME eq 'Detail')"}
                <a href=" '/'.$to.name)}"  class="ac firstnav">{$to.title}</a>
                  {else}
                <a href="{:url(MODULE_NAME.'/'.$to.name)}"  class="{if condition="strstr($to.name,CONTROLLER_NAME)"}ac{/if} firstnav">{$to.title}</a>
                   {/if}
                {/if}
                {/volist}
            </div>
    </div>
    <div class="zhiding" id="zhiding">
        <img src="__static__/hry/images/zhiding.png"/>
    </div>
</div>
<script src="__static__/hry/look/jquery-1.8.3.min.js"></script>
<script>
    $(function () {
        var timer  = null;
        $('#zhiding').click(function () {
            cancelAnimationFrame(timer);
            timer = requestAnimationFrame(function fn(){
                var oTop = document.body.scrollTop || document.documentElement.scrollTop;
                if(oTop > 0){
                    document.body.scrollTop = document.documentElement.scrollTop = oTop - 50;
                    timer = requestAnimationFrame(fn);
                }else{
                    cancelAnimationFrame(timer);
                }
            });
        })

        if("{$wantToLookinto}" == 1){
            layer.alert('尊敬的用户：您尚未进行风险评估或您的风险评估已过期，请前往评估',{
                icon: 3,
                skin: 'layer-ext-moon',
                btn: '前往评估'
            },function(){
                window.location.href = "{:url('Member/lookinto')}"
            });
        }

    })
</script>